home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / paral.doc < prev    next >
Text File  |  1995-03-31  |  4KB  |  88 lines

  1. Begin PARAL 1.4              Larry Hoppis                Elinel Consulting 
  2.  
  3. -------------------------------------------------------------------------- 
  4.                
  5. The following HP48 program contains general 1% resistor utilities for  
  6. electronics technicians and hobbyists. The main program 'RPAR' will  
  7. find all combinations of parallel 1% resistors to obtain the desired  
  8. value within a given accuracy.  This is useful in case you don't have 
  9. the value you need on hand, but also because the exact value you want 
  10. may not be a standard off-the-shelf value. 
  11.  
  12. :USAGE: 
  13.  
  14.  
  15. RPAR:   Put the value of the resistance you want in level 1 of the stack  
  16.         and press RPAR. RPAR presents a list of standard 1% resistance  
  17.         values which when paralleled will yield the desired value. The  
  18.         accuracy of each combination is also displayed. The required  
  19.         accuracy is specified by the variable 'ACCU'. Pressing ACCU will  
  20.         bring the accuracy value to the stack. Left-shift ACCU will  
  21.         store the value on the stack into ACCU.  
  22.  
  23.         RPAR displays 9 solutions at a time using the small graphics  
  24.         font. Pressing '+' (or any other key) will advance to the next  
  25.         page. Pressing '-' will return to the previous page.  Pressing  
  26.         the backarrow key (unshifted DROP) will exit the program and  
  27.         return the original value to the stack.  
  28.        
  29. NXT:    Given any value in level 1, will return the first standard 1 %  
  30.         value which occurs above that value.                  
  31.  
  32. PRV:    Given any value in level 1, will return the first standard 1 %  
  33.         value which occurs below that value.                   
  34.  
  35. ->PAR:  Takes any two values in levels 1 and 2 and returns the parallel  
  36.         combination of those two values to level 1.  
  37.  
  38. DSP:    Takes any value in level 1 decimal adjusts it for k or M  
  39.         scientific notation and returns it as a padded string to level one.  
  40.  
  41. ->BIN:  Takes any resistance value in level 1 and returns a bin number n  
  42.         such that when n is a positive integer it represents the nth  
  43.         calculated 1% resistance value (starting at 1 ohm). For example  
  44.         if there were a numbered drawer for every 1% resistor value 
  45.         ->BIN would return the drawer number for a given value.  
  46.  
  47. ->VAL:  Inverse of ->BIN. Takes any bin value in level 1 and returns the  
  48.         value that would occupy that bin.  If the input is an integer,  
  49.         an exact calculated 1% value will be generated.   
  50.          
  51.   NOTE:   Both ->BIN and ->VAL work with the _calculated_ 1% values  
  52.           which must be rounded to 3 significant places to correspond  
  53.           with standard 1% values.  
  54.  
  55. TONE:   Signal sound.  You can copy this to your home directory, then 
  56.         purge it; it is useful in other programs too. 
  57.  
  58. THEORY: RPAR uses an equation I derived with the HP48 from a list of  
  59.         valid 1% values.  This list was also created on the '48 using  
  60.         the formula  
  61.  
  62.                 INV(96) 
  63.         X = X*10        for all values between 1 ohm and 1 G ohm 
  64.  
  65.        
  66.                                         0.0239852613838*X 
  67.         The HP48 found  0.976300098965*e                   
  68.  
  69.  
  70. This Equation and its inverse form the basis of ->BIN and ->VAL.   
  71. Similiar equations could be derived for other resistor series such as 5%  
  72. or 10 %.  Utilizing these equations RPAR is accurate to at least 4  
  73. decimal places for all values from 1 ohm to 9.76E499 ohms - now that's a  
  74. big resistor! *:-).  
  75.  
  76. COPYRIGHT 
  77.  
  78. PARAL is copyrighted and may not be distributed for money under any  
  79. circumstance except in the case of a user group which may recoup a  
  80. small duplication fee.  PARAL may be freely copied and distributed as  
  81. long as this original documentation remains with it.  Please use and  
  82. enjoy PARAL and contact me with any suggestions or comments. 
  83.  
  84.    Larry L. Hoppis     |  quality!hoppis@ucscc.UCSC.edu   |  Love that '48!! 
  85.    240 Azalea Ave. 
  86.    Ben Lomond  CA 
  87.    95005 408-336-3651 
  88.